package com.kundi.dooradmin.service;

import com.kundi.dooradmin.entity.Introduction;
import com.kundi.dooradmin.mapper.IntroductionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Author 赵恒
 * Date 2020/7/9
 */
@Service
public class IntroductionService {
    @Resource
    IntroductionMapper introductionMapper;

    public Integer update(Introduction introduction) {
        return introductionMapper.updateByPrimaryKey(introduction);
    }

    public Introduction getIntroduction() {
        return introductionMapper.selectAll().get(0);
    }
}
